package fr.uparis10.miage.m1p1.menu.departement;
    import java.util.ArrayList;
	import fr.uparis10.miage.classic.m1.p3.Departement;
	import fr.uparis10.miage.classic.m1.p3.ObjectJ;
	import fr.uparis10.miage.m1p1.config.Configurator;
	import fr.uparis10.miage.m1p1.menu.MenuExecutor;

	public class ShowDepartementExecutor implements MenuExecutor {
		

		public void execute() {
			ObjectJ entr = Configurator.getInstance().getObjectJ();
			ArrayList<Departement> listDept = entr.getDeptement();
			System.out.println("===================================");
			System.out.println("      LISTE DES DEPARTEMENTS       ");
			System.out.println("===================================");
			for(Departement d:listDept)
				System.out.println(d.getNom());
			System.out.println("===================================");
		}

	}


